package com.xh.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: XH
 * @Date: Created in 21:01 2021/10/16 0016
 */
@RestController
@RequestMapping("stock")
public class TestController {
    @Value("${server.port}")
    String port;
    @RequestMapping("reduce")
    public String test(){
        return "库存扣减成功" + port;
    }

}
